home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 1
/
Nebula One.iso
/
Utilities
/
Printer
/
djf_for_3.0
/
djwraps.psw
< prev
next >
Wrap
Text File
|
1992-10-10
|
2KB
|
82 lines
// Setup machportdevice
// If you want to modify this to support something other than an
// ImageWriter, you'll probably have to change at least the
// halftone dictionary, the transfer function and the matrix.
//
//
//Standard dither (75dpi) //<04C334F310CF40FF8344B3748F50BF8024E314D330EF20DFA3649354AF709F600CCB3CFB08C73//8F78B4CBB7C8748B7782CEB1CDB28E718D7AB6C9B5CA7689758> def
//
//Matrix nach Bayer
//<008020A0088828A8C040E060C848E86830B0109038B81898F070D050F878D8580C8C2CAC04842//4A4CC4CEC6CC444E4643CBC1C9C34B41494FC7CDC5CF474D454> def
//
//Matrix nach Bayer um 20hex aufgehellt
//<00600000 00680888 A020C040 A828C848 10900070 18980078 D050B030 D858B838 //006C0C8C 00640484 AC2CCC4C A424C444 1C9C007C 14940074 DC5CBC3C D454B434> def
//
//Matrix nach Haberaecker1
//<1E5A8205 6EEBD246 96AF5A28 143C5A0A> def
//
//Matrix nach Haberaecker2
//<00E030D0 B0508060 20C010F0 9070A040> def
//
//Matrix nach Jarvis
//<008020A0 C040E060 30B01090 F070D050> def
//
//
// Spotfunctions
//
// ** DOT (einfach)
//{ 180 mul cos exch 180 mul cos add 2 div }
//
// ** DOT
//{abs exch abs 2 copy add 1 gt {1 sub dup mul exch 1 sub dup mul add 1
//sub }{dup mul exch dup mul add 1 exch sub }ifelse }
//
// ** ELLIPSE
//{ dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub }
//
// ** LINE
//{ pop }
//
// OneIsBlack
defineps minit1()
/DJF 7 dict begin
/jobTag 0 def
/samplesPerPixel 1 def
/bitsPerSample 1 def
/colorSpace NX_OneIsBlackColorSpace def
/isPlanar false def
/defaultHalftone 4 dict begin
/HalftoneType 1 def
/Frequency 75.0 def
/Angle 45.0 def
/SpotFunction {abs exch abs 2 copy add 1 gt {1 sub dup mul exch 1 sub
dup mul add 1 sub} {dup mul exch dup mul add 1 exch sub} ifelse} def
currentdict end def
/initialTransfer {dup 0 ne {0.835 mul 0.165 add dup 1 gt {pop 1} if }
if } def
currentdict end readonly def
endps
defineps minit2(int res, w, h; char *portname)
w h % image size
[ 0 0 w h
] % imageable bounding box
[ res 72 div
0
0
res -72 div
0
h
] % dev transform
() (portname)
DJF machportdevice
initgraphics
endps